package cn.yoyo.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentRowHeight;

import java.net.URL;

/**
 * @Remark: 博客类
 * @Author: yoyo
 * @Since: 2022/8/25 14:55
 */
@ContentRowHeight(100)
@ColumnWidth(100 / 8)
public class Blog {
    @ExcelProperty(value = "标题",index = 1)
    private String title;
    @ExcelProperty(value = "页码",index = 2)
    private Integer page;
    @ExcelProperty(value = "发表时间",index = 3)
    private String publishDate;
    @ExcelProperty(value = "阅读数",index = 4)
    private Integer pageview;
    @ExcelProperty(value = "封面",index = 0)
    private URL surfacePlot;

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Integer getPage() {
        return page;
    }

    public void setPage(Integer page) {
        this.page = page;
    }

    public String getPublishDate() {
        return publishDate;
    }

    public void setPublishDate(String publishDate) {
        this.publishDate = publishDate;
    }

    public Integer getPageview() {
        return pageview;
    }

    public void setPageview(Integer pageview) {
        this.pageview = pageview;
    }

    public URL getSurfacePlot() {
        return surfacePlot;
    }

    public void setSurfacePlot(URL surfacePlot) {
        this.surfacePlot = surfacePlot;
    }

    @Override
    public String toString() {
        return "Blog{" +
                "title='" + title + '\'' +
                ", page=" + page +
                ", publishDate=" + publishDate +
                ", pageview=" + pageview +
                ", surfacePlot=" + surfacePlot +
                '}';
    }

}
